package cn.cys.autoconfig;

import cn.cys.properties.IpCountProperties;
import cn.cys.service.IpCountService;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: yiShan chen
 * @Date: 2023/3/31 11:14
 */
@EnableScheduling
//@EnableConfigurationProperties(IpCountProperties.class)
@Import(IpCountProperties.class)
public class IpCountStaterAutoConfig {
    @Bean
    public IpCountService ipCountService() {
        return new IpCountService();
    }
}
